<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>弹性布局</title>
    <style>
        .container{
            width: 1000px;
            border: 3px solid black;
            margin: 0 auto;
            padding: 3px;
        }
        .header{
            height: 80px;
            border: 3px solid red;
            margin-bottom: 5px;
            display: flex;
            justify-content: space-around;
        }
        .body{
            height: 500px;
            border: 3px solid blue;
            display: flex;
            justify-content: space-between;
            padding: 5px;
        }
        .left-bar{
            height: 450px;
            border: 2px solid black;
            flex-basis: 30%;
        }
        .content{
            height: 450px;
            border: 2px solid black;
            flex-basis: 68%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-content: flex-start;
        }
        .header-one{
            width: 150px;
            height: 60px;
            border: 1px solid black;
            text-align: center;
            line-height: 60px;
        }
        .left-bar{
            display: flex;
            flex-direction: column;
        }
        .left-one{
            border: 1px solid black;
            height: 120px;
            text-align: center;
            line-height: 120px;
        }
        .content-one{
            width: 100px;
            height: 100px;
            border: 2px solid green;
            margin: 10px 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="header-one">首页</div>
            <div class="header-one">生活</div>
            <div class="header-one">娱乐</div>
            <div class="header-one">读书</div>
            <div class="header-one">电影</div>
        </div>
        <div class="body">
            <div class="left-bar">
                <div class="left-one">广告1</div>
                <div class="left-one">广告2</div>
                <div class="left-one">广告3</div>
            </div>
            <div class="content">
                <div class="content-one">新闻1</div>
                <div class="content-one">新闻2</div>
                <div class="content-one">新闻3</div>
                <div class="content-one">新闻4</div>
                <div class="content-one">新闻5</div>
                <div class="content-one">新闻6</div>
                <div class="content-one">新闻7</div>
                <div class="content-one">新闻8</div>
            </div>
        </div>
        <div class="footer"></div>
    </div>
</body>
</html>